FUNCTION
valid_scope_name
function valid_scope_name(scope: text): textEnsures that the scope is valid, also trimming leading and trailing whitespace.
Throws if scope is not valid
Parameters
- scope — The
scopeparameter of the auth handler to trim and check
Returns
the valid scope name, trimmed from leading and trailing whitespace
See Also
- require_valid_scope_name — for the rules on scope validation
© 2024 Chromia